package com.guhappy.model.contest;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.guhappy.model.user.WebUser;

public class Contest implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	private String name;
	private String desc;
	private Date createDate;
	private Date endDate;
	private Date startDate;
	private Float premium;
	private String isPrivate;
	
	private ContestType contestType;
	private ContestRule contestRule;
	private WebUser webUser;
	private List <ContestPlayer> playerList = new ArrayList<ContestPlayer>();
	/**
	 * @param id
	 * @param name
	 * @param desc
	 * @param createDate
	 * @param endDate
	 * @param startDate
	 * @param premium
	 * @param isPrivate
	 */
	public Contest(String id, String name, String desc, Date createDate,
			Date endDate, Date startDate, Float premium, String isPrivate) {
		this.id = id;
		this.name = name;
		this.desc = desc;
		this.createDate = createDate;
		this.endDate = endDate;
		this.startDate = startDate;
		this.premium = premium;
		this.isPrivate = isPrivate;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Float getPremium() {
		return premium;
	}
	public void setPremium(Float premium) {
		this.premium = premium;
	}
	public String getIsPrivate() {
		return isPrivate;
	}
	public void setIsPrivate(String isPrivate) {
		this.isPrivate = isPrivate;
	}
	public ContestType getContestType() {
		return contestType;
	}
	public void setContestType(ContestType contestType) {
		this.contestType = contestType;
	}
	public ContestRule getContestRule() {
		return contestRule;
	}
	public void setContestRule(ContestRule contestRule) {
		this.contestRule = contestRule;
	}
	public WebUser getWebUser() {
		return webUser;
	}
	public void setWebUser(WebUser webUser) {
		this.webUser = webUser;
	}
	public List<ContestPlayer> getPlayerList() {
		return playerList;
	}
	public void setPlayerList(List<ContestPlayer> playerList) {
		this.playerList = playerList;
	}
	
}
